package com.yueqian.sign;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

public class BaseView {
    protected Context context;
    protected View view;

    public BaseView(Context context){
        this.context = context;
    }

    public void setContentView(int id) {
        view = LayoutInflater.from(context).inflate(id, null);
    }

    public View getView() {
        return view;
    }

    public final <T extends View> T findViewById(int id) {
        return view.findViewById(id);
    }
}
